package com.iterator.controller.wechat.lc;

import com.iterator.bean.web.pojo.BaseRespVo;
import com.iterator.bean.web.pojo.dhy.MallRegion;
import com.iterator.service.wechat.lc.RegionService;
import com.iterator.service.wechat.lc.RegionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("wx/region")
public class WxRegionController {
    @Autowired
    RegionServiceImpl regionService;
    @RequestMapping("list")
    public BaseRespVo regionList(@RequestParam("pid") Integer pid){
        List<MallRegion> regionList = regionService.getList(pid);
        return BaseRespVo.ok(regionList);
    }
}
